﻿-- =============================================
-- Script Template
-- =============================================
USE [ProjectStorageDB]
GO

/****** Object:  Table [dbo].[n_agile_practices]    Script Date: 04/30/2011 23:33:39 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[n_agile_practices](
	[id_practice] [decimal](6, 0) IDENTITY(1,1) NOT NULL,
	[id_method] [decimal](6, 0) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[descr] [varchar](max) NULL,
 CONSTRAINT [PK_n_agile_methodologies] PRIMARY KEY CLUSTERED 
(
	[id_practice] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING ON
GO

ALTER TABLE [dbo].[n_agile_practices]  WITH CHECK ADD  CONSTRAINT [FK_n_agile_practices_n_agile_methods] FOREIGN KEY([id_method])
REFERENCES [dbo].[n_agile_methods] ([id_method])
GO

ALTER TABLE [dbo].[n_agile_practices] CHECK CONSTRAINT [FK_n_agile_practices_n_agile_methods]
GO


